﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;

namespace ConfExpert.Forms.Rapor.YeniYapi
{
    public partial class FasonFaturaRaporu : XForm
    {
        public FasonFaturaRaporu()
        {
            InitializeComponent();
        }

        private void FasonFaturaRaporu_Load(object sender, EventArgs e)
        {
            
            Guncelle();
        }

        private void btnGuncelle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Guncelle();
        }

        void Guncelle()
        {
            gv.EndEditing();
            gv.Init("GetFasonFaturaRaporu");
            gv.MakeReadOnly();
            gv.AddSummary("SiparisAdedi", "KesilenAdet", "Adet");
            gv.SetCaptions("Adet:FaturaAdedi");
            gv.SetFilterTypeToCheckedList("Yil", "Ay");
            gv.BestFitColumns();
        }
    }
}